home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / ply15dat.zip / SPOT0.PI < prev    next >
Text File  |  1992-09-19  |  754b  |  36 lines

  1. // Sample file demonstrating a spotlight.  A red/blue checkered sphere lies on 
  2. // a black/white checkered plane, a spotlight shines down.
  3. // Polyray input file - Alexander Enzmann
  4.  
  5. viewpoint {
  6.    from <0,0,-12>
  7.    at <0,0,0>
  8.    up <0,1,0>
  9.    angle 45
  10.    resolution 320, 160
  11.    aspect 2
  12.    }
  13.  
  14. background SkyBlue
  15.  
  16. spot_light white, <10,10,0>, <3,0,0>, 3, 5, 20
  17.  
  18. include "..\colors.inc"
  19.  
  20. // Create a sphere with a checker texture
  21. object {
  22.    sphere <0, 0, 0>, 2
  23.    texture {
  24.       checker matte_red, matte_blue
  25.       }
  26.    }
  27.  
  28. // Create a ground plane
  29. object {
  30.    polygon 4, <-20,-2, -20>, <-20,-2, 20>, <20,-2, 20>, <20,-2, -20>
  31.    texture {
  32.       checker matte_white, matte_black
  33.       translate <0, 0.1, 0>
  34.       }
  35.    }
  36.